﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.IRepository.Operation;
using SystemCenterSoa.PoModel.Operation;
using SystemCenterSoa.Repository.CommonLib;

namespace SystemCenterSoa.Repository.Operation
{
    public class OperationRepository: BaseRepository, OperationIRepository
    {
        public OperationRepository(SystemCenterDbSoaContext systemCenterDbSoaContext) : base(systemCenterDbSoaContext)
        {


        }
        /// <summary>
        /// 项目立项添加
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public bool OperationAdd(Operation_PoModel info)
        {
            _systemCenterDbSoaContext.Operation_PoModel.Add(info);
            _systemCenterDbSoaContext.SaveChanges();
            return true;
        }
        /// <summary>
        /// 项目立项显示
        /// </summary>
        /// <param name="searchModel"></param>
        /// <returns></returns>
        public PagerResult<Operation_PoModel> OperationShow(SearchModel searchModel)
        {
            throw new NotImplementedException();
        }
    }
}
